<?php
/**
 * Created by xun at 2020/5/8
 */


return [
    'process_name' => 'chatee_master',
    'host' => '0.0.0.0',
    'port' => '9501',
    'settings' => [
        'swoole' => [
            // 日志文件路径
            'log_file' => APPLICATION_ROOT . '/app/logs/swoole.log',
            // 进程的PID存储文件
            'pid_file' => APPLICATION_ROOT . '/app/logs/swoole.server.pid',
            // 'daemonize' => 1,
            // 设置异步任务的工作进程数量
            // 'worker_num' => 100,
            // 'task_worker_num' => 10,
        ]
    ],
    'extend' => [
        'mysql' => [
            'host' => '192.168.209.209',
            'port' => 3306,
            'user' => 'root',
            'password' => '',
            'db' => 'test',
            'charset' => 'utf8mb4',
            'timeout' => 2,  // 可选：连接超时时间（非查询超时时间），默认为SW_MYSQL_CONNECT_TIMEOUT（1.0）
        ],
        'channel' => [
            'size' => 64 * 1024
        ]
    ]

];